Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable debug draw modes in the 3D editor according to current rendering method #93673

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Calinou
Copy link
Member

@Calinou Calinou commented Jun 27, 2024

  • Add tooltips to some debug draw modes, including when it's unsupported due to the current rendering method in use.
  • Improve documentation related to debug draw modes.

Preview

Mobile

Screenshot_20240627_200452 png webp

Compatibility

Screenshot_20240627_200422 png webp

@Calinou Calinou added this to the 4.x milestone Jun 27, 2024
@Calinou Calinou requested review from a team as code owners June 27, 2024 18:22
@Calinou Calinou force-pushed the 3d-editor-debug-draw-modes-mark-unsupported branch from a4824bb to 31663a1 Compare June 27, 2024 18:26
Copy link
Contributor

@Mickeon Mickeon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some of the feedback also applies to the duplicated descriptions in Viewport.

doc/classes/RenderingServer.xml Outdated Show resolved Hide resolved
doc/classes/RenderingServer.xml Outdated Show resolved Hide resolved
doc/classes/Viewport.xml Outdated Show resolved Hide resolved
…ing method

- Add tooltips to some debug draw modes, including when it's unsupported
  due to the current rendering method in use.
- Improve documentation related to debug draw modes.
@Calinou Calinou force-pushed the 3d-editor-debug-draw-modes-mark-unsupported branch from 0746718 to fa46a3d Compare June 28, 2024 22:13
Copy link
Contributor

@Mickeon Mickeon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On the class reference side of things this is fine

disabled_tooltip = TTR("This debug draw mode is not supported when using the Compatibility rendering method.");
break;
case SupportedRenderingMethods::FORWARD_PLUS:
disabled = OS::get_singleton()->get_current_rendering_method() == "gl_compatibility" || OS::get_singleton()->get_current_rendering_method() == "mobile";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
disabled = OS::get_singleton()->get_current_rendering_method() == "gl_compatibility" || OS::get_singleton()->get_current_rendering_method() == "mobile";
disabled = OS::get_singleton()->get_current_rendering_method() != "forward_plus";

Copy link
Member Author

@Calinou Calinou Jul 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While your suggestion currently does the same thing in practice, it's less semantically correct. It may matter in the future if we have a Cinematic rendering method (as mentioned in this gist), as this rendering method would likely support all debug draw modes.

@akien-mga akien-mga modified the milestones: 4.x, 4.4 Aug 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Vulkan Mobile backend: Some advanced debug draw modes do nothing when enabled
4 participants